package com.wu.viewpagerdemo;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class ActivityTabSub extends Activity implements IViewPagerChangeListener {

	private static final String TAG = "test";

	protected Context mContext;
	protected ActivityTabSub mInstance;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		mInstance = this;
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	public IViewPagerChangeListener getInstance() {
		return mInstance;
	}

	@Override
	public void onVisible() {
		onResume();
		Log.i(TAG, getClass() + " onVisible");
	}

	@Override
	public void onInvisible() {
		onPause();
		Log.i(TAG, getClass() + " onInvisible");
	}

}
